import{d}from"./merakDemo.js";import{i as u,s as f,w as _,f as M}from"./messageUtils.js";import{P as h}from"./prism.js";/* empty css      */import w from"./dropWrap.js";import{d as k,e as C,o as b,n as x,a as y,P as v,Q as P,R as s,$ as e,X as t,a4 as l,S,K as I,a5 as T,a8 as B,a9 as N}from"./elementPlusModules.js";import{_ as V}from"./index.js";import"./lodashModules.js";import"./vxeTableModules.js";const r=o=>(B("data-v-61de330c"),o=o(),N(),o),j=r(()=>s("div",{class:"hr das"},null,-1)),A=r(()=>s("h4",{class:"title_lv2"},"Message 消息提示",-1)),D=r(()=>s("div",{class:"statement"},[s("ol",null,[s("li",null,"提type示类型：success、warning、message、error")])],-1)),E={class:"language-js"},F=k({__name:"toast",setup(o){const a=d();let c=C(` 
    //可传参为：不传即为默认值
        interface baseMsg {
        title?: string;//提示标题
        msg: string;//提示信息
        showClose?: boolean;
        num?: number; //点击次数
        confirmTxt?: string; //确认文本
        cancelTxt?: string; //取消文本
        callback?: any;//返回方法
      }
  
  
  
    import {
    infoMsg,
    successMsg,
    failMsg,
    warnMsg
  } from "@/utils/messageUtils";
   // Message提示  infoMsg successMsg failMsg warnMsg
   //无返回值可以直接使用
      warnMsg(demoProp.title);
   //有返回值可传参
      infoMsg({
          msg: demoProp.title,
          showClose: true,
          callback: () => {
            console.log("关闭");
          }
        });
  
      `);b(()=>{x(()=>{h.highlightAll()})});const i=()=>{u({msg:a.title,showClose:!0,callback:()=>{console.log("关闭")}})},p=()=>{f({msg:a.title})},g=()=>{_(a.title)},m=()=>{M(a.title)};return(K,Q)=>{const n=y("el-button");return v(),P(T,null,[j,A,D,s("div",null,[e(n,{type:"success",plain:!0,onClick:p},{default:t(()=>[l("successMsg ")]),_:1}),e(n,{type:"warning",plain:!0,onClick:g},{default:t(()=>[l("warnMsg")]),_:1}),e(n,{type:"default",plain:!0,onClick:i},{default:t(()=>[l("infoMsg")]),_:1}),e(n,{type:"danger",plain:!0,onClick:m},{default:t(()=>[l("failMsg")]),_:1})]),e(w,{key:"ffs"},{default:t(()=>[s("pre",null,[s("code",E,S(I(c))+" ",1)])]),_:1})],64)}}}),J=V(F,[["__scopeId","data-v-61de330c"]]);export{J as default};
